move check for remsh after config.h