Fix for EZP-23464 and EZP-23463

- /etc/init.d/solr restart now working ('2&>1' changed to '2>&1')
- replaced 'pidof java' by 'ps' and 'grep'
- replaced 'RETVAL=$?' after starting background job, as this would always be 0
- quoted variables, so they may contain whitespace