The Plugin SDK shell scripts generate exceptions: bad interpreter No such file or directory.
The cause of the problem is due the presence of the ^M characters at the end of the lines. These should be removed for Linux / Mac (i.e. script.sh) based files.
Please be aware extra character is present on more than just the shell files. For example, they can be seen on XML files.
The undesirable character can be stripped from source files by using the dos2unix command; however, it should be noted, many distr.'s don't include it so another workaround is needed.
To be a help to others, an alternative solution can be found using the instructions should from the below link.
This problem is similar to
Kind regards and with respect,