use temp dir for src and spec build