get username and homedir from system calls instead of hard coding