mac updates

Updating to split the commands into multiple command calls instead of using `&&` in the args. For some reason this was causing spawn to file on mac.

This needs testing on windows.