Fix excluded tags and spaces parsing

Change-Id: Ib9edc65f92f81f6f0e77fdc4f9f44919f0cca145
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>