Fix. IT wasn't checking the directory.