cleanup, logging additions, fixing a bug in package arch determination test, changing to a file-based OS determination mechanism