Fix remote_file_spec.rb

If pre_action is not executed, @temppath is not set and spec fails.