Make new_post.sh portable