Fixed support for specifying a debug directory