! Don't delete .htaccess files when doing attachment maintenance (fixes ...

...#1841)

This also includes minor cleanup of the code.

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>