Fix build step always logging an error