Make expand_path use bstring instead of char pointers.

Create function prototypes.