rmg_det_to_db: catch OSError where directory already exists, which is what we want anyway