Handle when "Successfully built" is not on the very last line
Minor syntactic change