Issue #3074961 by metalbote: Change web-root logic as drupalRoot should not be hardcoded in src/Scripthandler