Fix path issues if embedded in apache