Get actions from type `file' directly.

- fixes #20