Added trailing slash to directories in 'advanced' mode