Allow test cases to use directory when only the script name is passed
Create setScriptBaseDir(scriptName) to fix jshint tests
Merge pull request #561 from hexid/test-dirname-fix

Allow test cases to use the directory when only the script name is passed