Resolve filepath for better finding of rules