Fixed incorrect build dir comparison.