Support portable mode, use CreateFile instead of MoveFileEx