Testing Script Fixes

-handles the case when a script has has two digits correctly
-no longer uses different port numbers for UnexpectedError5
-works both with and without the scripts/ prefix