Add functions for testing install type. Fixes #216