Update to IsAssemblyDebugBuild. Used overloaded method of GetCustomAttributes and getting only debuggableattribute