handle absolute and relative home folder paths correctly