image: add wrapper variable to get the target dir for mkfs commands