Use cp instead of rsync to copy frameworks (refs #1063).

Add mkdir command to make sure the folder Contents/Frameworks exists (otherwise the first framework becomes this folder).
Change rsync command to cp to keep the file structure and all symbolic links.