fix a bug where urls with single character basenames would lose the basename portion, add options to match output of yui 2.4.2