modifies env to fix some problems with the PROMPT_COMMAND when there was a prompt command that had a semi-colon at the beginning and or end