Change legacy unary numeric checking syntax into bash arithmetic
Drop dependency on external basename tool
Revert "Drop dependency on external basename tool"

This reverts commit 73e049c4931cd798cdf662b5c2b6b41c400d87b2.
Merge branch 'cleanup' of git://github.com/cdown/pwait

Conflicts:
	pwait