Fix it so path should never not ends with forward slash.