Fix behavior of project-environment command when it is called from project-up command.