Fix bug : if extensions is single value, convert it to 1 element array

Signed-off-by: Kevin Nguyen <k.nguyen@thecodingmachine.com>