Added check for existance before moving a file