Fix for moving file after export erroring out