use expr instead of let as Linux /bin/sh does not support let (is not bash).