Properly escape color codes in bash

Closes #177