Sync CHM build scripts and make them work again

# Hannes, the $BUILDDIR uses tuxxedo.net for now, if a 
# sub domain is setup then feel free to change it once 
# it takes effect

git-svn-id: https://svn.php.net/repository/phpdoc/doc-base/trunk@329596 c90b9560-bf6c-de11-be94-00142212c4b1