Update to support Linux and Mac

Update to support Linux and Mac
Also allow to use '|' as separator for check attribute