Improve the code, adding template inline and change the way to execute t...

...he script. Now execute the check_postgres.pl and adding the action that we want to execute
pass <% end %> <% if @dbname %>--dbn

sobra ese espacio en blanco (entre end e if)