Revert "Fix loading of relative local resources in popup dialog"
Not ABI compatible. Thanks to Nicolas Alvarez for reporting.
This reverts commit 459a1c83100de62069405ab838a5c81647e82c6c.