Clear PROMPT_COMMAND when creating bash process

Function in PROMPT_COMMAND can change PS1, and will break bash-completion.el.
Minor fixes to eliminate byte-compiler warnings.
Merge pull request #2 from frankpzh/patch-1

Clear PROMPT_COMMAND when creating bash process
Merge pull request #3 from seanmcl/master

Fix compilation warnings