Made sure in-inventory trigger is called at pickup

Also added checks for invalid item and zero amount

Reviewed-by: bjorn.
Made the scripts being able to install

The game server will now look for the scripts in this order:
 - serverPath - config value
 - current working directory
 - the PKG_DATADIR #define