Fix behaviour of install commands for Java and Erlang
Also check for backgrounded command for new sudo in BashCommands