This check shouldn't be necessary - MCS_getcurdir() should never return a '/' at the end - if there are cases where the system does, then this should be corrected in MCSystem, rather than here.