Properly handles the diff, color, and fast option when black is run with the `--code` option. Closes #2104, closes #1801.