avoid issue with incorrect file patterns being passed between scripts