changed she-bang from sh to bash coz, ubuntu failed to recognize the double brackets "[[]]" for the if statement. added support for multiple args.