check of valid build mode did not allow install; fixed.