Fixed a serious bug where auto-update .bash_profile would remove empty lines & comments (see issue #162)