Fixes error messages on login with extra directories