Allow package to use resource directory.

Signed-off-by: crynobone <crynobone@gmail.com>