add support for resource dir (osx bundle style