Fixed code to extract filename from path name, so it works with both forward and backward slashes