Fixes sorting bug with included_files status array

With string input, the "stdin" entry would get sorted away
from the start of the array. This lead to a strange bug
since we skip the first item when copying that information
back to the implementer.