Revert "Remove rvm emulation function"

This reverts commit a28048b2a892dd99a906be4551bda7f38c5e2bc0.
Only emit rvm warnings if we're in an interactive shell