Remove additional / or \ in relative path.