Add missing getEnvironment in import spec