dir_build needs os passed to it