Fixes #18 - Throw on complete failure instead of exiting the process
Check bashrc last
Should write completion file first and read the .bashrc file last because of process exit.
[fix] Use `process.env.USERPROFILE` if $HOME isn't set
Due to changes in node v0.10, `path.join` no longer accepts `undefined` as a correct parameter which causes this module to fail on Windows, which sets $USERPROFILE instead of $HOME. Disclaimer: I have no actual idea if this'll make the module work on Windows. It might if people have a full bash shell set up.
Fixes #11 - Removed invalid scripts from package.json
check if .profile file exists on OSX