Another check to ensure the main index.php doesn't get deleted when mana...

...ging attachment directories (per #899)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>