Fix syntax error in string concatenation
Fix tiny bashism, keeping the plugin as /bin/sh
Use /bin/sh "=" comparison, instead of "=="
Use /bin/bash as interpreter, and switch to UNIX line breaks
Use /bin/bash as interpreter for bash script

 -  uses "echo -en" several places