Parse gitignore globs to remap to file globs

'*.x' can be left alone as it's already a correct glob.
'x' can be assumed to be a search for '*/x/*'
'**' is actually the behaviour of '*'