Fix #25

Use Shell against Ruby for better performance. Thanks to Gescheit
(https://github.com/gescheit) for this suggestion.