Fixed target names to avoid clashes with AlloSystem
Improved buildandrun.sh script to detect whether targets exist to not rerun cmake