separated run_command from get_md5sums to make the code mofr flexible