fix rc.local handling

Fix initial handling of rc.local file