check file path from -f option

1. check file path from -f option, to ensure a valid value is got from the user
2. merge the lastest version number from master