Fix #261

Allow arrays of files to work correctly
Merge pull request #262 from wgcrouch/master

Fix #261