Fix problem when site is running in subdirectory