fixed move method to handle the case of the old file not existing