Tweaked isValidTarget to support greater depth in pail directory structure