[~BUGFIX] $file in Mage_Core_Model_Resource_Setup overwritten

If $file is used in a setup resource it modifies the $file variable in resource setup class.
I got a warning which causes an exception during unit tests.