improve log messages
make sure we do not get 2 `/` in relative paths
make CSS matching more permissive