Tweaked build folder detection.