Fix path prefix helper for bundle and add test.
Merge remote-tracking branch 'ivan-github/bug/3778_bundle-path-prefix' into develop