Improve action check for create_remote_file.

Apparently the action could also be an array.
This fix solves the broken travis builds for Ruby 1.9.3.