Fix lighttpd file download issue. Closes #1507