fix media scan - when input and output dirs are different