Remove experimental code which was causing crash (BL-688)

Problem occurred when path contained "web"