Fix up build current file plugin a little bit.