compatibility with no build folder or no debug file in build folder