fix bug in calculating home dir