Mothballs do seem to work, and the smell goes away after a few days. I have used the snake away but it gets expensive. Malathion, an insect spray does a pretty good job of keeping them out of the yard.
If you spray around the garage with it leave an opening for the snake to get out. It seems...