Changed assert, so that it ignores system specific dir separator.