Issue #3302728: Do not assume package.json file will be kept in library directory in order to get library version.
Instead of using package.json file that could be not present, use photoswipe.json file to get the Library Version.
Edited by mariana paz