Fix multiple paths manifest and manual mode

Fixed bug with multiple paths in manifest and manual mode based on
henrikmartinsson works.