Allow configuration file and resource directory retrieval.

Signed-off-by: Robert Xu <robxu9@gmail.com>