Change publisher.apps/libs to publisher.app/lib

Also change the 'if statement' for appID and id so that it checks for id first before checking for appID