Close GH-784: Several main files are outputted as an array with --paths, fixes #781.. Fixes #781