Fix bad asset path when using subdir

Fixes #1713