Made bsn!=directory
Added support for different cnf name ..