Fix some bugs

Add checking of packages to capture bad package file.
Fix bug when setup environment to skip the global bashrc.
Merge branch 'master' of https://github.com/dongli/packman