Add more debuggin output
Remove the extraneous shift
Use sudo for blkid query as otherwise one gets null