Fixes spec and _DIR_ usage