This should probably be FileUtils.mkdir_p remote_path instead.  I'll add that in a further commit.