Moved config migration code into our config class, makes more sense.

Added more detailed log messages for get_dirnames function.
Merge branch 'origin/dev'