fix startup scripts (issue #28)