Fixing "dir not found" error