Remove the last part of the path to the dracut modules directory.