Fix lib import; now works when invoking from sbin dir

Avoids dirname and two subshells
Avoid find and sed for listing commands
Spelling fix
Merge pull request #40 from Alexqw/more_small_fixes

More small fixes