TypeError and test

Consider:

<%= File.dirname(@configfile) %>

Previously this would fail for TypeError

This should pass ERB validation, which this patch fixes (i.e. the same thing passed through erb -P -x -T '-' deploy/1_0_5/modules/puppetagent/templates/puppet.conf.erb | ruby -c) wins