Fixes bug with :basename tag in permalinks

When :basename was used for files in the root source directory, one character was removed from the beginning because there is no slash. Sorry for that.