Bugfix: only open file if it ends with .deid