startup: Fix check for running executables

os.getlogin() doesn't work if there's no controlling tty. In fact we
don't need the username here since ps -U accepts UIDs just fine.

https://bugzilla.gnome.org/show_bug.cgi?id=728231