Added few fixes in scripts for apache 2.4