Improved pfile backup code

Signed-off-by: ScottHaileRobertson <heyemailthis+Git@gmail.com>