Do you need this file resource?   I thought you could use a template directly on the exec's  command property?