add slash or backslash at the end of path (fix xbmcvfs.exists in Helix)