Use HOME rather than ~ when setting path