added methods for getting the home directory and checking the existance of paths