Added compatibility with RVM. This fixes #1.