check for dir in sys