Add support for custom dirs for download and update