Fix index generator not picking up build artifacts
This change broke the condition which picks up build artifacts resulting in an empty index page in s3 https://gitlab-runner-downloads.s3.amazonaws.com/master/index.html.
This MR fixes that and adds tests.
Edited by Georgi N. Georgiev