add if-env regarding common environment variables

USER, HOME and PROJECT_NAME were considered