Because of OS X's EPIPE error, we need to give executable permission and run the bash code