Fixed bashrc file update logic