Provide rudimentary Solaris support

 - Ensure we have a sane path to use "POSIX" sed rather than ye olde Solaris one
 - Provide a suitable alternative if [g]readlink isn't availiable
 - Suppress "Missing newline at end of file" errors from Solaris xpg4 sed
Simply `$readlink` would work better here as a variable name