 			execGruntTask 'default', (err) ->
 				return done(err) if err
 
-				if !fs.existsSync __dirname + '/support/build/Release/hello_world.node'
+				if !fs.existsSync supportDir + '/build/Release/hello_world.node'
 					return done(new Error 'expected Release/hello_world.node to exist')
 
 				done()

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

				configGypi = fs.readFileSync __dirname + '/support/build/config.gypi', 'utf8'
				if configGypi.indexOf('"default_configuration": "Debug"') < 0
					return done(new Error 'expected config.gypi to be configured for debug build')


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

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

