Use LOCALSHOP_HOME environment variable (if present) to determine default path

The default behavior of assuming that config and database files should be stored in the user's $HOME directory isn't suitable for all use cases. This change makes it possible to override the default path using the LOCALSHOP_HOME environment variable.