Static path fixes

more use of the package dir instead of static file dir, and update a previous test patch of mine to work for build and install time tests