changed set paths to be a mixin as function didnt work

@triblondon