Properly getting resources in JAR.
Reads options for publicDirectory and port