Add cast to id to silence type mismatch error
[Rakefile] Use sh for the prepare task