Fix setting ports listening variable in cf-monitord.
Recently introduced check for file permissions was using binary path
including cmdln flags.

Redmine: #6845
Fix RlistParseShown to handle arrays correctly.
Currently it leaves closing bracket "}" within the value when dealing with arrays.

Redmine: #6845
Merge pull request #2053 from maciejmrowiec/master

Fix handling ports listening monitoring variable.