Fix for case when python just happens to be in full path
Do not chdir unnecessary for registry_rebuild and similar modules