improved POSIX compatibility of start scripts patch by Kjell Andreassen and Paul Cannon for CASSANDRA-2965