test if build dir exist before creating it