You don't have to define a new "TARGET_URI", there is the default "TARGETURI" offered by the Msf::Exploit::Remote::HttpClient you're using. Please, switch to the provided TARGETURI option. You can grep TARGETURI in aux modules and http exploits to see lot of examples of use :)