fix bug where sendToCosm wasn't found in the PATH