Added option to pass single file or a specific glob pattern