Fixed the directory-default code that I broke with my last