making it possible to have relative/abs result dir, thanks @allocbool  #449