add a function 'getHomeDir', which returns a directory path of the user home.