Check for and use srm and os-specific .profile