Only check runscript dir when we are really executing the script.