issue/2871 - Fix the framework copy and codesigining issues

Forget the other one... that one is cleaner!
The argument for `readlink` has to be quoted, because the path could contain spaces.
```shell
source=$(readlink "${source}")
```