Fixes issue with bundler getting stuck
Write prefixes to the prologue instead of the epilogue (Fixes #15)