resolves #16 by using basename() on argv[0]