Correct file URL detection
add  flag