more fixes for create cmd under windows