Refactor dirs (again)

Follow-up from: https://github.com/bitpay/bitcore/pull/561