Add some folding and wild card ignore stuff

Signed-off-by: Geoff Lane <geoff@zorched.net>