improve filename parse, fix filename is fullpath on IE8