store: fix recursive/dir arguments