Fix of hanging threads belonging to the Scanner
Merge pull request #79 from ziggimon/master

Fix if clauses two places.
Added a small delay in starting/stopping PMS, cuz newer firmware can cause a race condition during boot
Switched away from brutal kill
Merge pull request #77 from ukdtom/master

Addng a small delay in starting/stopping PMS (QNAP)
Changes to synology packaging as adviced by synology
Fix extra 'Plex' in path.
Fixing up so x19 arm builds work.