Changing logic in run.sh for compiling.