Error handling, using ENV to get HOME value