buildpack: fix hanging fi in compile