Ensure that scripts correctly follow symbolic links to determine the framework directory

Often it may be desirable for packaged versions to create symbolic links to the executor scripts. As they currently stand, the scripts will mis-identify the framework directory using `dirname` to be the directory in which the symlink resides.

The pull request uses a python one-liner as `readlink`'s behaviour can be platform dependent.