Fixes in register variables and names of tasks

Fixed register variables so they are evaluated appropriately in checking package install.