Rewrite 'badRelativePaths' to use rle and find sequences of '../'