switched to user envvar instead of username; this should be more portable I think