Get correct user when calling with sudo