add ruby preprocessing script (for require) and correct shell script run.sh