Removed the -b options from the ln commands because macs don't support it. Added directory guards. Untested