Fixing atlassian's service script since it does not work on redhat systems