check if file exists before move