listEnvironmentWithState and executePath fix