show log and logfile download only if log_type is set to owncloud
add unit test for getFilenameForDownload