chimera-cli: fix chown

chown updates gid of a current directory instead of required file.

Acked-by: Paul Millar
Target: master, 2.11, 2.10
Require-book: no
Require-notes: no
(cherry picked from commit 36ce25267ee2c9aec830e705b77018d9d7e1227b)
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Merge pull request #1179 from kofemann/fix-chimera-cli-2.11

chimera-cli: fix chown