This is a strange situation I cant seem to make any sense out of your errors. All seem to work when you are reading the main script as soon as the scripts attempts to open any external configuration files it fails?
Followed your instructions.
I can see that ... Well I have the same configuration could we be running into a permission issue? I have folder /etc/tie.d and all files in that folder are executable by root