Port chattr/lsattr to XS; more efficient and avoid PATH mess

Configuration of PATH?

Trap or redirect errors to /dev/null?
