In case a name has several '.', try to split the key until there is a result
Fix redirect output (#320).
Merge branch 'master' into 7_00