Ensure the result value of shelly-home to be a pathname.
Don't add configurations to a rcfile if installation failed.
Add about SHELLY_HOME to the History.