Fixed class loading problem. Added class loading and dependency resolving inspired by maven exec plugin