Fix resource  directory location

This commit fixes the main resources directory location so that it also
works in a multi-projects setup.

Fixes gh-993
(cherry picked from commit a69f518)