Fixed long path problems in RFITS and WFITS