fixed split when given an empty string or '/'