Handle symlinking correctly between Linux and Mac OSX