Fixed some install buglets

Signed-off-by: ichbin <ichbin@ichbin.us>
Merge pull request #837 from IchBin/bugfix

Fixed some install buglets