Implement "use_directory_urls" for static build.

Complete development for support of the "use_directory_urls" parameter,
so that it is now correctly respected when performing a static build.