use platform indepent way of getting home directory