Fix bug in view publisher

Fix bug in view publisher where it didn't publish to the correct directory (should be `app/views/packages/{vendor}/{package}/` not `app/views/{vendor}/{package}/`).

This is against 4.0 as it's a bugfix and 4.0 is the earliest base, but should be able to be imported to 4.1 and master with cherry-pick or a merge.