Correct inline() args in edit and search commands.

Broken since the "multiple hook scripts" change in 5.4.10.
Strip lines for inlined editing.

Broken since the "multiple hook scripts" change in 5.4.10.
Merge pull request #916 from hjoliver/fix-file-inlining

cylc edit, cylc search: fix file inlining