Added windows compability with pbs module