Fix folder exists problem in REMOTE_INSERT