Fix compatibility with old GNU coreutils versions