fixes bugs caused by recent refactoring on static path

Symptom : the debug bar does not appear anymore

Bug introduced in commit 189668eadd3f47d8c4a03ad2953b25a3a475a127 about issue #307