Check for the base directory