prefix2type.sh: stable version!