Fixing up build scripts

Needed to add a environment variable to prevent html output during testing
via ant. Also, added the build directory covered by the output of the
build process.
Getting tests to finish.

Tests used to be able to finish, but suddenly they couldn't. So I fixed
that. The Crypt one was harsh, as I beleive there's something about the
encoding of the text in the file which phpunit takes into account for
testing if equal or not.