Typo

Fixed undefined local variable or method 'filename' exception raised when using pre_postinstall_file option. Refers to #575.