Replace backslashes in defaultPath to preserve compatibily with Mac/Linux