Fixes on f option for check only a directory