ensure build prefix directory exists