Ensure a ROOT_PATH is defined for CLI apps

Maybe fixes #420