The correct way to do it is

1. Use the datastore TARGETURI option as used by the Msf::Exploit::Remote::HttpClient mixin
2. Here just do:

```
uri = normalize_uri(target_uri.path.to_s, "images", "stories", "#{@script_name}.php")
```