Fixes wrong subfolder creation in hourly/daily/weekly folder

The check in move_to which ensures the destination folder exist checks for the whole destination path. Therefore it generates a directory in the destination folder named after the file and puts it inside this folder.