Ruby backticks plus bash can be frustrating