Fix moving files from tmp dir to final location

yep, sorry forgot