Dynamically select mod location based on boot mode