fix pig script base path bug.