Fix the copy to clipboard command for Mac OS X