Add path checks to static file