conditional copy of htdocs/static