fixed first_available_file and roles support
for copy and template action
Merge pull request #3112 from hudecof/devel

fixed first_available_file and roles support for copy and template action