stubs.c: fix use of undeclared identifier PATH_MAX
stubs.c: cleanup
Merge pull request #47 from 251/stubs_path_max

Simplified implementation of canonicalize_file_name().  Addresses #46.