Fix uri parsing, so that '/foo' means function foo on package '' instead of package 'foo'