fix maskBaseDir and destPrefix default to '', which is falsey (evaluates to false when implicitly converted to boolean expression), so this code doesn't set the destination: