adding compatiblity with yarn, shared lib should come in coma format in...

...stead of colon format for hadoop 2.x
As discussed, this is not the right fix. You need to change the condition to '==' from '!=' in case of 'yarn.resourcemanager.address'.