Fixes bug #33, "uploading using fig with multiple resource linesdoesn't work".
http://github.com/mfoemmel/fig/issues/issue/33