improve scripting

added classpath of top level directory if a script is directly ran
Merge pull request #114 from metridoc/improve-scripting

improve scripting