Simplify \Slim\Environment root and resource URI parsing