Reorganize shell scripts to avoid build failure.