o Fix path prefix helper for the bundle and add regresion tests. Closes #3778.