libhb: clean up handling dir directory separator

title->name was getting set to an empty string in some cases due to
looking for the wrong directory separator.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6057 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb: sort the list of files in batch mode

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6058 b64f7644-9d1e-0410-96f1-a4d463321fa5