Improved RegExp to detect files outside parent