Replace / with ~ in module names; build release by default.