2603f3ad79
2) Exit with error diagnostic if file exists but not a directory (-d) 3) Do chmod independently of chown (-d)