Handled the case when user HOME is not defined