Updated preprocess shellscript