Another check to ensure the main index.php doesn't get deleted when managing attachment directories (per #899)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>