replace path in initscript with prefix if given