Allow user to set tmp dir for spades. Fix spades threads used