bug fix to ensure debug_dir search in alt. modules functions correctly