Fixed deploy script to work with OSTYPE on darwin based systems