see if modified basedir is actually a directory