Fix calculation of load path when the behavior url is in the same directory as the html page