fix error if .profile doesn't exist

introduced by 3f44f51e9ca1b196e4c3caa439558996abdac273