Fixed scoping of start script