Made changes to init scripts to support gnu stat