Fixed relative path when rootpath is outside project path