Fixed detection of the guest user

Closes #207