fix path for css/js generated files - handle symlinks