Duplicate directories raise OSError, not IOError