Fixed: failed to check isdir option