Rewrite the with-dracutdir stuff to be more versatail.