fix building PATH in environment file