Removing trailing new lines in .sh