updated makefiles to be generic, infering the problem number from the parent directory