check for access to directories on startup