Fix issue with undefined screenshot paths