The error was caused by the CONFIG_ROOT environmental variable, which was incorrectly assumed to be a path.py valid path.