added conditional to see if gmp directory exists so not to compile again