Add `before` and `after` options to insertIntoFile