Make the path compatible with local mode.
Merge pull request #7 from caizhiwei/master

Pig local mode compatibility.