Fix a bug
Support specify installed packages in command line

Add extra check_consistency method in package definition to ensure the
installed package is ok, such as check if the package is built with MPI.

Also fix some errors.
Forget to stage something