Convert @shell from shell script to lua script
This makes @shell rootdir friendly and cross install friendly
as well as capsicumized.
Bonus: the /etc/shells is now only touched when needed
Reviewed by: manu, mat
Approved by: portmgr (mat)
Differential Revision: D26640