Restore file_exists check to ModuleAPI to avoid blowing up when there's no API.