NXP-13709: fix webdriver screenshot taker when using a target dir