Adding exception for directory not found