rcm: Add pre-up hook for directory creation