Refactor deploy to support OSX and Linux.  Should have done this the first time.