BUG: fix old appinst handling.
Merge branch 'handle_old_appinst'

Fixes #87.