if directory doesnt exist exit