Fix bash escaping for files with spaces in trigger()