Fix #481: server crash from bad basedir