Update .profile.

Added environment variable to indicate whether user is remote or local