Sometimes users prefer . instead of source

So only check for file name