Fixes #1 - ugly error When no uri or cache dir provided