resource handling for jar/app packaging