fixed error handling: fail fast
fixed problems caused by running from a jar file

now need to copy resource stream to user.dir/.reprap.
To make this easier use apache commons-io and friends.