fixes #3664 - support deletion of installation media that's in use

re-factored here to create custom message that "media is used by host in build mode"