fix unmatch uriPath and scriptPath
move configuration in one place, lib/Config.php