ensure absolute paths for input and output dir
rm old files