Fixed prepare.sh to avoid copying resources afresh each run