Fix a bug that we may overwrite the target executable when user dropped it onto LEGUI.