smartcd fixes for Windows