Use values from $object_file for file operations. 

Enables plugins to manipulate such things as uploaded file names.

This patch is for this:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29776