Fixed #854: Issues with having both debug and release modules in the same directory