Fixed issue which meant .bashrc file was overwritten completely