fix a bug which prevented running on a single file

Make sure that sourceFiles is an array, even if there is only one
source file