bash completion in terminal - files vs folders
as far as I know, it's a feature, not a bug. 

you could just change to tcsh, here is a guide (eventually you have to install it via homebrew, then adapt the path)