corrected location of new posts creation in shell script