Minor fix on reg prep shell script