Switch from `cut` to `sed`, to be compatible with BSD based systems.
Merge pull request #77 from utkarshkukreti/switch-from-cut-to-sed

Switch from `cut` to `sed`, to be compatible with BSD based systems.