tweaks code to allow previously set prompt commands to still work

Title pretty much says it all, I modified the script slightly to respect a previously set PROMPT_COMMAND so this script didn't override it :)