Added *.log to .gitignore
Fixed a number of broken path issues.

All the paths in the scripts should now work relative to the files from
which they're called, meaning that the scripts can be called from any
pwd and should still work.