improve scripting

added classpath of top level directory if a script is directly ran