Remove experimental code which was causing crash

Problem occurred when path contained "web"