Don't depend on static paths especially if we are already checking that
location using the getResource call.
Merge branch 'bugfix/CID-1230587'