Fixes attachment directory checks