 			execGruntTask 'configure', (err) ->
 				return done(err) if err
 
-				configGypi = fs.readFileSync './build/config.gypi', 'utf8'
+				configGypi = fs.readFileSync __dirname + '/support/build/config.gypi', 'utf8'
 				if configGypi.indexOf('"default_configuration": "Release"') < 0
 					return done(new Error 'expected config.gypi to be configured for release build')
 

			execGruntTask 'archIa32', (err) ->
				return done(err) if err

				configGypi = fs.readFileSync './build/config.gypi', 'utf8'
				if configGypi.indexOf('"target_arch": "ia32"') < 0
					return done(new Error 'expected config.gypi to be configured for 32-bit build')


			execGruntTask 'clean', (err) ->
				return done(err) if err

				if fs.existsSync __dirname + '/support/build/'
					return done(new Error 'expected build directory to be removed')

				done()
