Add PBS directives for per-job log files

Any stdout or stderr that aren't otherwise redirected inside
a rule are merged into a single *.log file named after the 
job's first output file.

This only works when running on the cluster, but it's a quick way
to get separate log files for free.