mkdir to return false when path already exists

Should fix #1113