This is a very old method and most likely it wont work on current version 6.1 of dump 1090-fa.
You got the “not found” message because this method requires a file named “optimized-gain.py” to be present on your RPi. This file is to be created by you. Please see this post.