static file copy: making it fit for subdirectories (for favicon) and correctly blacklist some file extensions