Restoring data from dumped sql file gives: mysql: unknown option '--innodb_file_per_table
Problem solved:  

It should be an unknown option as I've put it below [mysql] not [mysqld]. I put all the parameters below [mysqld] and I went through the process again and now it works just fine. ibd files are in their respective database folder.