environment: normalize use of prefixcmp() by removing " != 0"