Dev: userdir: Simpler code for user data

Use standard modules to get username, home directory etc.