Modify deploy script to get gems from tmp when it is runing in SNAP.