pdfsizeopt only works with ect if it is all uppercase, as can be seen in the code here. Looking at the latest CMakeLists.txt of the project here, it creates an executable named ect that is lowercase. Would it be possible to support an ect executable using a lowercase name?