.DS_Store and similar files cause error on open