added resolve to custom paths because require does not user cwd when loading
added directory to custom_path example
added directory config handling to root of options