tools-ma: Fix index out of range in tokens list
tools-ma: Fix index out of range in tokens list

The get_all_statements method was considering a declaration
with just two lines, which was causing index out of range
issue when declarations have more then two lines.
This patch fixes this issue.

This patch also fixes Carriage return from Windows ('\r\n')
and End of line from Mac systems ('\r').
Replaces theses ocurrences and change by
end-of-line from Unix-like systems ('\n').
The error appears when algorithm try to split using '\n',
in case of '\r\n' and '\r' it fails.

Change-Id: I42a6ad1a56a49b402c1bdedf288a3c0f70863bcd
Signed-off-by: Diego Fernandez Merjildo <087f4fd07194e0c02797834057ab65473be6f150@br.ibm.com>

open-power-sdk/migration-advisor,open-power-sdk/migration-advisor,open-power-sdk/migration-advisor,open-power-sdk/migration-advisor