change arithmetical operator, as it is specified by POSIX and should be available in most sh versions