Several main files are outputted as an array with --paths, fixes #781.

#781