This script isn't called on CPSV so it can't be it.
Also,
Code:
[L] 500 'CPSV': Command not understood
This means the command isn't supported at all by the ftpd. If it was a script problem you would either timeout or receive a "Command failed" error.