Make process-content.sh Mac-compatible