Emulate "install -D" behavior as it is not available on OS X.