correct initial install test + fix code
Merge pull request #124 from michaelheyvaert/fix-hanging-initial-aptitude-install

correct initial install test + fix code