Fix bug when trying bower on the root folder.
Use fstream stack for more meaningful stack traces.