make AMD directories relative