Fixes #341 . .profile not found error

Closes #341