prefer perl to sed for gnu/bsd compat
add a readme with install instructions