properly find upgrade scripts