Fixing cut command to work on macs.