[backend] fix triggerdir substitute

Perls ability to accept broken syntax never ceases to amaze me...