Fix several bugs for PBIs on 10

* Fix an issue building from source and not copying files to /usr/pbi
* Set and pass along the users cwd to the PBI container
* Fix some clang warnings in pbime