Fixed working directory bug in init script