Added automatic deletion of GIT_DIR environment variable to make it easier for deployment command to issue git commands.