Use environment variable instead of argument parsing

Signed-off-by: Simon Busch <morphis@gravedo.de>