Find the "erl" executable in $PATH and read the "RELEASES" file to extract the erlang release number
awk -F, 'NR==1 {gsub(/"/,"",$3);print $3}' "$(dirname $(readlink -f $(which erl)))/../releases/RELEASES"