Correctly search for files as regular user (see #5348)