Fix globbing of ** to match all files an directories in order to be backwards compatible - closes #245