Allow setting storage directory through environment.

Use STORAGE_DIRECTORY variable.
Take version from the file as well.