Replace hardcoded priv dir with erlangs code:priv_dir/1 function.