More robust attachment file existence/access checking