Fixed duplicate target name bug for build file