Updated the preptool code to work in a jar as well as in production mode.