diff --git a/buildout/hooks/mysql-tritonn-hooks.py b/buildout/hooks/mysql-tritonn-hooks.py
index 07f8690f2bcbb08818e9e2f97bf98209b94d0be7..054bf7699f499f1a3e75afef6534712a6b710000 100644
--- a/buildout/hooks/mysql-tritonn-hooks.py
+++ b/buildout/hooks/mysql-tritonn-hooks.py
@@ -4,21 +4,20 @@ import os
 # the comand below assumes there is only one sub-directory under the
 # 'compile-directory', which is why the cd .../* would work.
 CMDS = """
-cd %s/*
 libtoolize -c -f
-which aclocal-1.9 >/dev/null 2>/dev/null && aclocal-1.9 || aclocal
+aclocal
 autoheader
-which automake-1.9 >/dev/null 2>/dev/null && automake-1.9 -c -a -i || automake -c -a -i
+automake -c -a -i
 autoconf
 touch sql/sql_yacc.yy
 """.strip()
 
 def pre_configure_hook(options, buildout):
-    os.system(CMDS % options['compile-directory'])
+    os.system(CMDS)
 
 def post_make_hook(options, buildout):
     try:
-    	os.mkdir("%s/var" % options['location'])
+        os.mkdir("%s/var" % options['location'])
     except OSError, e:
-	if e.errno != errno.EEXIST:
-	    raise
+        if e.errno != errno.EEXIST:
+            raise