fixed wrong expansion of home paths #324