Be more prudent and only run on PE, fix #920