improved prase/resolve error message
use /usr/bin instead of /usr/sbin for MacOSX package