Add @dir keyword and mark @dirrm and @dirrmtry as deprecated