Adding vm.base(partialPath) function to scripting