Don't try to use a non-existant log directory
Improve parameter searching

Search in both associated .params files (if any) and in the actual scene
file using magic-comments for parameters.

Searching is now done in awk, as shell+sed was getting too annoying.