18289 - Handle spaces in paths correctly

Jenkins jobs tend to have spaces in the path, which caused issues here where
the load path is munged and mapped. This commit escapes the path before joining
it with -I. It also escapes the lib, bin and path in the build_package method.