Updated scripts to check for osx before execing osx commands

Signed-off-by: Byron Sanchez <byron@hackbytes.com>