Fixed slug name, fixed a bug with filenames if the blog was in a subdirectory, fixed doubleslash problem with subdirectory