Add file_exists check for plugins.php