Set up directories on init.