Use __dirname instead of '.' and use full paths.

Without those changes, tests blow up under chrooted environment.
Update script.