init script: ensure no trailing slash in path