simplied sed for mingw, fixed a mingw issue with bash_prompt, and removed . from $PATH on mingw