PATH and LOCALBASE search for pkg binary

Instead of hard coding to the default path of pkg, we want to handle a user custom compiled location (LOCALBASE) and also search PATH. 'pkg' should be in one of these two reasonable locations.

This should satisify PRs #23 and #27.