This is not longer needed since https://github.com/TrinityCore/TrinityCore/commit/c8950c55ef46470dd411fd9c6d77fa6382d9e48f (3 days ago) Nice, i didn't notice that good job.
Did you re cmake before adding in the custom scripts?
Did you correctly add the scriptnames found within the cpp file in the correct area on scriptloader file?