Oh, I see, you're removing the symlink here, not the actual directory.  OK.

Instead of `|| true`, just do `rm -f /usr/local/bin/casperjs`.  In general, I always do `rm -f` instead of `rm` in scripts, to avoid potential errors.