fixed build folder check