Check realpath for executable bit
Check realpath for executable bit

Fixes a problem where there are symlinks in the scripts directory
If the symlinks target is not executable (ex. a processingMCP.xml file)
then the symlinks permissions should be ignored, and the symlinks
target path should be tested for the x permission.

artefactual/automation-tools,artefactual/automation-tools