Added reading the profile and storing PATH and HOME.