Run using working directory, remove unecessary ;

Running only with execdir was pretty annoying.
I've added working directory as safe as possible.

Also remove function() {}; at classes.