Adding option to specify local data directory via environment variable