Fix build.pl such that is does not have any absolute paths.  Also, fixed some incorrect code in the ui layer (related to DocumentFragment