removed getUserHome function
get user home with home-dir module
updated policy based on sys.policy