Correct use of HOME environment variable