check file path from -f option