Made dist and mb targets cross-platform to test on Windows