Update compile script

- Remove double quote where useless
- Remove check if ruby is present because already installed by default,
  but an old version
- Remove `cd` in favour of `pushd`