Fix path issue for continue file
Improve regex