Fixed argument order, so that script is compatible with GNU utils.