fix installer context detection, fix #2007