build page urls prefixed with /
changed path variable for creating directories
fixed basepath site variable