Smarter about directory context

Absolute paths worked fine, but when a jar is packaged with an Erlang app, it should try and use some relative paths (specifically, priv)