fix loading .profile in .bash_login, update #3130