Put the script in the local folder instead of the plugin folder. /usr/lib/check_mk_agent/local/
/usr/lib/check_mk_agent/local/
Should work then