Replace custom clipboard code with pbcopy package