add slash or backslash at the end of path

fix xbmcvfs.exists in Helix
http://mirrors.xbmc.org/docs/python-docs/14.x-helix/xbmcvfs.html#-exists