 			execGruntTask 'clean', (err) ->
 				return done(err) if err
 
-				if fs.existsSync __dirname + '/support/build/'
+				if fs.existsSync supportDir + '/build/'
 					return done(new Error 'expected build directory to be removed')
 
 				done()

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

				if !fs.existsSync __dirname + '/support/build/Debug/hello_world.node'
					return done(new Error 'expected Debug/hello_world.node to exist')

				done()

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

				if !fs.existsSync supportDir + '/build/Release/hello_world.node'
					return done(new Error 'expected Release/hello_world.node to exist')

				done()
