Check bashrc last

Should write completion file first and 
read the .bashrc file last because of process exit.
Merge pull request #15 from josher19/patch-1

Check bashrc last