dirname filter errors

I have narrowed this issue down to a sample role:

`

Never mind. I needed to change the param in debug from var to msg!